package so.shanku.essential.utils;

import android.graphics.Bitmap;
import android.view.View;
import com.nostra13.universalimageloader.core.assist.FailReason;
import com.nostra13.universalimageloader.core.listener.SimpleImageLoadingListener;
import so.shanku.essential.app.MyApplication;

/**
 * Created by Administrator on 2015/9/14 0014.
 */
public class ImageLoaderBitmapCallBack extends SimpleImageLoadingListener {
	@Override
	public void onLoadingStarted(String imageUri, View view) {
		super.onLoadingStarted(imageUri, view);
	}

	@Override
	public void onLoadingFailed(String imageUri, View view, FailReason failReason) {
		super.onLoadingFailed(imageUri, view, failReason);
	}

	@Override
	public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {
//		if(loadedImage!=null){
//			MyApplication.getInstance().addBitmapHashMap(imageUri,loadedImage);
//		}
		super.onLoadingComplete(imageUri, view, loadedImage);
	}

	@Override
	public void onLoadingCancelled(String imageUri, View view) {
		super.onLoadingCancelled(imageUri, view);
	}
}
